<template>
  <div class="add">
    <ZgEdit
      ref="dialog"
      :view="view"
      :columns="columns"
      :formulas="formulas"
      :validUrl="validUrl"
      :saveUrl="saveUrl"
      @ok="$emit('ok')"
    >
    </ZgEdit>
  </div>
</template>
<script>
export default {
  data() {
    return {
      view: { width: '30%', top: '5%', title: '新增级别' },
      columns: [
        {
          code: 'name',
          span: 20,
          isNeed: true,
          name: '级别名称',
          compType: '单行文本',
          defaultVal: ''
        },
        { code: 'score', span: 12, isNeed: true, name: '分数范围', compType: '整数', defaultVal: undefined }
      ],
      formulas: [],
      validUrl: '',
      saveUrl: ''
    }
  },
  components: {},
  computed: {},
  methods: {
    open() {
      this.$refs.dialog.open()
    }
  },
  created() {},
  mounted() {}
}
</script>
<style lang="less" scoped></style>
